package com.account.book.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liang-hw
 * @className CategoryBaseReqVo
 * @description 新建基础分类入参
 * @date 2023/12/05 09:11:13
 */
@Data
@ApiModel(value = "新建基础分类入参", description = "新建基础分类入参")
public class CategoryBaseReqVo {
    @ApiModelProperty("id")
    private String id;

    @NotNull(message = "基础分类父标签不能为空")
    @ApiModelProperty("基础分类父标签")
    private String parentId;

    @NotNull(message = "基础分类名称不能为空")
    @ApiModelProperty("基础分类名称")
    private String name;

    @ApiModelProperty("基础分类状态 0-禁用 ，1-启用")
    private Integer status;

    @ApiModelProperty("基础分类图标url")
    private String weightIcon;

    @ApiModelProperty("基础分类类型 0-收入 1-支出")
    private Integer type;

    @NotNull(message = "基础分类图标路径不能为空")
    @ApiModelProperty("基础分类图标路径")
    private String icon;
}
